package LawsonTransformJava.main;

import java.io.File;
import java.sql.SQLException;

import LawsonTransformJava.pgm.PA512;
import LawsonTransformJava.pgm.PR514;

public class PA512Main extends ClassMain {

	/**
	 * @author edavis
	 */
	
	private static final String OUTPUTLOCATION = "z:/conversions/dataload";
	
	public static void main(String[] args) {
		Thread thread1 = null;
		File outFile = new File(OUTPUTLOCATION + "/PAELOADCSV_" + getDate());
		File errFile = new File(OUTPUTLOCATION + "/PAELOADCSV_ERROR_" + getDate());
		File convRpt = new File(OUTPUTLOCATION + "/PA512TransformationReport_" + getDate() + ".txt");

		System.out.println("CLASSPATH=" + System.getenv("CLASSPATH"));
		PA512 objDAO = null;
		objDAO = new PA512(outFile, errFile, convRpt);
		thread1 = new Thread(objDAO);
//		objDAO.setWhereClause("WHERE EMPLOYEE=100050");
		thread1.start();
	}
}
